﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Team4Mock.FormView
{
    public partial class Department : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (!string.IsNullOrEmpty(Request.QueryString["D"]))
                {
                    pnEdit.Visible = true;
                    pnAdd.Visible = false;
                }
                else
                {
                    pnEdit.Visible = false;
                    pnAdd.Visible = true;
                }
            }
        }
    }
}